package com.school.basic.repository;

import com.school.basic.entity.TeacherInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface TeacherInfoRepository extends JpaRepository<TeacherInfo,Integer>, JpaSpecificationExecutor<TeacherInfo> {
    void deleteTeacherInfosByIdIn(List<Integer> idList);
    List<TeacherInfo> findAllBySchoolId(Integer schoolId);
}
